<?php use_helper('Date'); $sf_user->setCulture('ru_RU'); ?>
<h2 class="block_title_red"><span>Релизы</span></h2>
<?php /*if ($pager->haveToPaginate()): ?>
	<?php include_partial($sf_context->getModuleName().'/pagination',array('pager'=>$pager,'category_id'=>$Category->id))?>
<?php endif;*/?>

<?php 
//$relizes = $pager->getResults();
if( $relizes->count()>0 ):?>

	<?php foreach($relizes as $reliz):?>
	<div class="article">
		<?php if($reliz['image']):?>
			<?php echo link_to('<img title="'.$reliz['image_text'].'" src="/uploads/relizes/thumbnail_70_70/'.$reliz['image'].'"/>','reliz_view',$reliz)?>
		<?php endif;?>
		<?php echo link_to($reliz['title'],'reliz_view',$reliz,'class="entity_header"')?><br/>
		<span class="cat_link">
			<?php echo link_to($reliz['RelizCategory']['title'],'view_releases_category',$reliz['RelizCategory'],"title='Показать все релизы по категории ".$reliz['RelizCategory']['title']."'");?> | 
			<?php echo format_datetime($reliz['updated_at'],'f')?>
		</span><br/>
		<span class="short_description"><?php echo $reliz['short']?></span><br/>
	</div>
	<?php endforeach;?>

<?php else:?>
no relizes
<?php endif;?>

<?php /*if ($pager->haveToPaginate()): ?>
	<?php include_partial($sf_context->getModuleName().'/pagination',array('pager'=>$pager))?>
<?php endif;*/?>
<?php include_component('banners','get468x60')?>